import requestEdu from "@/utils/request_edu";
export default {
  getAllTeacher() {
    return requestEdu({
      url: "/Learning/teacher/findAll",
      method: "get",
    });
  },
  getTeacherPage(page, pageSize, teacherQuery) {
    return requestEdu({
      url: `/Learning/teacher/page/${page}/${pageSize}`,
      method: "post",
      data: teacherQuery,
    });
  },
  getTeacherById(id) {
    return requestEdu({
      url: `/Learning/teacher/getThisTeacher/${id}`,
      method: "get",
    });
  },
  getCourseByTeacherId(teacherId) {
    return requestEdu({
      url: `/Learning/edu-course/getCourseByTeacherId/${teacherId}`,
      method: "get",
    });
  },
};
